﻿/*======================================*\
 * Author: 廖国添
 * LastModifyUser: 廖国添
 * Description: 表字段信息DTO
 * CreateTime：2013-1-15 21:50:48
 * ModifyTime:  
 * Remark: 代码生成器v0.1 by 廖国添
\*======================================*/
using System;
using ZLDC.GenericFrame.Entity.Attributes;
using ZLDC.GenericFrame.Entity;
namespace ZLDC.Entity
{
    /// <summary>
    ///  t_Goods 代码生成器生成的代码
    /// </summary>
   [Serializable]
   [TableProperty(DefaultOrderby = "Id Desc",DbType = DbTypeEnum.SqlServer, ConnAppKey = "DefaultDb", PrimaryKey = "Id", TableName = "t_Goods")]
   public partial class t_Goods : BaseEntity
   {
       #region 私有属性
	    		 private int _id;
		 private string _goodsname;
		 private string _goodscode;
		 private double? _goodsprice;

	   #endregion
	    
	   #region 公有属性
	   		 /// <summary> 
		 ///  
		/// <para>主键列</para> 
		/// </summary> 
		[ColumnProperty( IsAutoAdd =true, ColumnName = "Id") ]
		 public int Id
		 { 
			set 
			 { 
				object oldValue = _id;
				_id = value ;
				this.OnPropertyChanged("Id", _id, oldValue);
			 } 
			get{ return _id;} 
  		 } 

		 /// <summary> 
		 ///  
		/// </summary> 
		[ColumnProperty(ColumnName = "goodsName")]
		public string goodsName
		{ 
			set 
			{  
				object oldValue = _goodsname;
				_goodsname = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("goodsName", _goodsname, oldValue);
					this.OnPropertyMappingChanged("goodsName", _goodsname, oldValue);
				}  
			} 
 			get{ return _goodsname;} 
  		 } 

		 /// <summary> 
		 ///  
		/// </summary> 
		[ColumnProperty(ColumnName = "goodsCode")]
		public string goodsCode
		{ 
			set 
			{  
				object oldValue = _goodscode;
				_goodscode = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("goodsCode", _goodscode, oldValue);
					this.OnPropertyMappingChanged("goodsCode", _goodscode, oldValue);
				}  
			} 
 			get{ return _goodscode;} 
  		 } 

		 /// <summary> 
		 ///  
		/// </summary> 
		[ColumnProperty(ColumnName = "goodsPrice")]
		public double? goodsPrice
		{ 
			set 
			{  
				object oldValue = _goodsprice;
				_goodsprice = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("goodsPrice", _goodsprice, oldValue);
					this.OnPropertyMappingChanged("goodsPrice", _goodsprice, oldValue);
				}  
			} 
 			get{ return _goodsprice;} 
  		 } 


	   #endregion
	   
	   
   }
}
